<script setup>
import { UploadFilled } from '@element-plus/icons-vue'
</script>

<template>
  <div>
    <el-upload
        class="upload-demo"
        drag
        action="http://47.109.129.255:9211/photo/upload"
        multiple
    >
      <el-icon class="el-icon--upload"><upload-filled /></el-icon>
      <div class="el-upload__text">
        将文件拖放到此处或<em>单击上传</em>
      </div>
      <template #tip>
        <div class="el-upload__tip">
          只能上传大小小于 5MB 的 JPG/PNG/JPEG 文件。
        </div>
      </template>
    </el-upload>
  </div>
</template>
